#ifndef GroundGrass_h
#define GroundGrass_h

#include "StaticObject.h"

#define WIDTH 45
#define HEIGHT 45

class GroundGrass : public StaticObject
{
private:
	Sprite *_sprite;
public:
	GroundGrass(int id, D3DXVECTOR2 position, int MovingWidth) : StaticObject(id, position, MovingWidth)
	{
		_w = WIDTH;
		_h = HEIGHT;
		_type = GroundGrassType;
		_movingWidth = MovingWidth;
	}
	~GroundGrass(){}

	void LoadResources(LPD3DXSPRITE SpriteHandler, Texture *texture){
		_sprite = new Sprite(SpriteHandler, texture, WIDTH, HEIGHT, 1, 0);
	}


	void RenderFrame(LPDIRECT3DSURFACE9 BackBuffer, ViewPort *viewport)
	{
		_sprite -> Render(BackBuffer, (int)_position.x, (int)_position.y, 255, 1, 1, viewport);
	}

};

#endif